package cn.itcast.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class infoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public infoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andInfoTypeIsNull() {
            addCriterion("info_type is null");
            return (Criteria) this;
        }

        public Criteria andInfoTypeIsNotNull() {
            addCriterion("info_type is not null");
            return (Criteria) this;
        }

        public Criteria andInfoTypeEqualTo(String value) {
            addCriterion("info_type =", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeNotEqualTo(String value) {
            addCriterion("info_type <>", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeGreaterThan(String value) {
            addCriterion("info_type >", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeGreaterThanOrEqualTo(String value) {
            addCriterion("info_type >=", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeLessThan(String value) {
            addCriterion("info_type <", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeLessThanOrEqualTo(String value) {
            addCriterion("info_type <=", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeLike(String value) {
            addCriterion("info_type like", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeNotLike(String value) {
            addCriterion("info_type not like", value, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeIn(List<String> values) {
            addCriterion("info_type in", values, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeNotIn(List<String> values) {
            addCriterion("info_type not in", values, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeBetween(String value1, String value2) {
            addCriterion("info_type between", value1, value2, "infoType");
            return (Criteria) this;
        }

        public Criteria andInfoTypeNotBetween(String value1, String value2) {
            addCriterion("info_type not between", value1, value2, "infoType");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNull() {
            addCriterion("openId is null");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNotNull() {
            addCriterion("openId is not null");
            return (Criteria) this;
        }

        public Criteria andOpenidEqualTo(String value) {
            addCriterion("openId =", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotEqualTo(String value) {
            addCriterion("openId <>", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThan(String value) {
            addCriterion("openId >", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("openId >=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThan(String value) {
            addCriterion("openId <", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThanOrEqualTo(String value) {
            addCriterion("openId <=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLike(String value) {
            addCriterion("openId like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotLike(String value) {
            addCriterion("openId not like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidIn(List<String> values) {
            addCriterion("openId in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotIn(List<String> values) {
            addCriterion("openId not in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidBetween(String value1, String value2) {
            addCriterion("openId between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotBetween(String value1, String value2) {
            addCriterion("openId not between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidIsNull() {
            addCriterion("user_openId is null");
            return (Criteria) this;
        }

        public Criteria andUserOpenidIsNotNull() {
            addCriterion("user_openId is not null");
            return (Criteria) this;
        }

        public Criteria andUserOpenidEqualTo(String value) {
            addCriterion("user_openId =", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidNotEqualTo(String value) {
            addCriterion("user_openId <>", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidGreaterThan(String value) {
            addCriterion("user_openId >", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("user_openId >=", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidLessThan(String value) {
            addCriterion("user_openId <", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidLessThanOrEqualTo(String value) {
            addCriterion("user_openId <=", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidLike(String value) {
            addCriterion("user_openId like", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidNotLike(String value) {
            addCriterion("user_openId not like", value, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidIn(List<String> values) {
            addCriterion("user_openId in", values, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidNotIn(List<String> values) {
            addCriterion("user_openId not in", values, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidBetween(String value1, String value2) {
            addCriterion("user_openId between", value1, value2, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andUserOpenidNotBetween(String value1, String value2) {
            addCriterion("user_openId not between", value1, value2, "userOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidIsNull() {
            addCriterion("horseman_openId is null");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidIsNotNull() {
            addCriterion("horseman_openId is not null");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidEqualTo(String value) {
            addCriterion("horseman_openId =", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidNotEqualTo(String value) {
            addCriterion("horseman_openId <>", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidGreaterThan(String value) {
            addCriterion("horseman_openId >", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("horseman_openId >=", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidLessThan(String value) {
            addCriterion("horseman_openId <", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidLessThanOrEqualTo(String value) {
            addCriterion("horseman_openId <=", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidLike(String value) {
            addCriterion("horseman_openId like", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidNotLike(String value) {
            addCriterion("horseman_openId not like", value, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidIn(List<String> values) {
            addCriterion("horseman_openId in", values, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidNotIn(List<String> values) {
            addCriterion("horseman_openId not in", values, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidBetween(String value1, String value2) {
            addCriterion("horseman_openId between", value1, value2, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andHorsemanOpenidNotBetween(String value1, String value2) {
            addCriterion("horseman_openId not between", value1, value2, "horsemanOpenid");
            return (Criteria) this;
        }

        public Criteria andInfoTitleIsNull() {
            addCriterion("info_title is null");
            return (Criteria) this;
        }

        public Criteria andInfoTitleIsNotNull() {
            addCriterion("info_title is not null");
            return (Criteria) this;
        }

        public Criteria andInfoTitleEqualTo(String value) {
            addCriterion("info_title =", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotEqualTo(String value) {
            addCriterion("info_title <>", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleGreaterThan(String value) {
            addCriterion("info_title >", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleGreaterThanOrEqualTo(String value) {
            addCriterion("info_title >=", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleLessThan(String value) {
            addCriterion("info_title <", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleLessThanOrEqualTo(String value) {
            addCriterion("info_title <=", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleLike(String value) {
            addCriterion("info_title like", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotLike(String value) {
            addCriterion("info_title not like", value, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleIn(List<String> values) {
            addCriterion("info_title in", values, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotIn(List<String> values) {
            addCriterion("info_title not in", values, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleBetween(String value1, String value2) {
            addCriterion("info_title between", value1, value2, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoTitleNotBetween(String value1, String value2) {
            addCriterion("info_title not between", value1, value2, "infoTitle");
            return (Criteria) this;
        }

        public Criteria andInfoContentIsNull() {
            addCriterion("info_content is null");
            return (Criteria) this;
        }

        public Criteria andInfoContentIsNotNull() {
            addCriterion("info_content is not null");
            return (Criteria) this;
        }

        public Criteria andInfoContentEqualTo(String value) {
            addCriterion("info_content =", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotEqualTo(String value) {
            addCriterion("info_content <>", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentGreaterThan(String value) {
            addCriterion("info_content >", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentGreaterThanOrEqualTo(String value) {
            addCriterion("info_content >=", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentLessThan(String value) {
            addCriterion("info_content <", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentLessThanOrEqualTo(String value) {
            addCriterion("info_content <=", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentLike(String value) {
            addCriterion("info_content like", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotLike(String value) {
            addCriterion("info_content not like", value, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentIn(List<String> values) {
            addCriterion("info_content in", values, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotIn(List<String> values) {
            addCriterion("info_content not in", values, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentBetween(String value1, String value2) {
            addCriterion("info_content between", value1, value2, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoContentNotBetween(String value1, String value2) {
            addCriterion("info_content not between", value1, value2, "infoContent");
            return (Criteria) this;
        }

        public Criteria andInfoImgIsNull() {
            addCriterion("info_img is null");
            return (Criteria) this;
        }

        public Criteria andInfoImgIsNotNull() {
            addCriterion("info_img is not null");
            return (Criteria) this;
        }

        public Criteria andInfoImgEqualTo(String value) {
            addCriterion("info_img =", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgNotEqualTo(String value) {
            addCriterion("info_img <>", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgGreaterThan(String value) {
            addCriterion("info_img >", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgGreaterThanOrEqualTo(String value) {
            addCriterion("info_img >=", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgLessThan(String value) {
            addCriterion("info_img <", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgLessThanOrEqualTo(String value) {
            addCriterion("info_img <=", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgLike(String value) {
            addCriterion("info_img like", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgNotLike(String value) {
            addCriterion("info_img not like", value, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgIn(List<String> values) {
            addCriterion("info_img in", values, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgNotIn(List<String> values) {
            addCriterion("info_img not in", values, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgBetween(String value1, String value2) {
            addCriterion("info_img between", value1, value2, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoImgNotBetween(String value1, String value2) {
            addCriterion("info_img not between", value1, value2, "infoImg");
            return (Criteria) this;
        }

        public Criteria andInfoTimeIsNull() {
            addCriterion("info_time is null");
            return (Criteria) this;
        }

        public Criteria andInfoTimeIsNotNull() {
            addCriterion("info_time is not null");
            return (Criteria) this;
        }

        public Criteria andInfoTimeEqualTo(Date value) {
            addCriterion("info_time =", value, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeNotEqualTo(Date value) {
            addCriterion("info_time <>", value, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeGreaterThan(Date value) {
            addCriterion("info_time >", value, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("info_time >=", value, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeLessThan(Date value) {
            addCriterion("info_time <", value, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeLessThanOrEqualTo(Date value) {
            addCriterion("info_time <=", value, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeIn(List<Date> values) {
            addCriterion("info_time in", values, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeNotIn(List<Date> values) {
            addCriterion("info_time not in", values, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeBetween(Date value1, Date value2) {
            addCriterion("info_time between", value1, value2, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoTimeNotBetween(Date value1, Date value2) {
            addCriterion("info_time not between", value1, value2, "infoTime");
            return (Criteria) this;
        }

        public Criteria andInfoReadIsNull() {
            addCriterion("info_read is null");
            return (Criteria) this;
        }

        public Criteria andInfoReadIsNotNull() {
            addCriterion("info_read is not null");
            return (Criteria) this;
        }

        public Criteria andInfoReadEqualTo(String value) {
            addCriterion("info_read =", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadNotEqualTo(String value) {
            addCriterion("info_read <>", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadGreaterThan(String value) {
            addCriterion("info_read >", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadGreaterThanOrEqualTo(String value) {
            addCriterion("info_read >=", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadLessThan(String value) {
            addCriterion("info_read <", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadLessThanOrEqualTo(String value) {
            addCriterion("info_read <=", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadLike(String value) {
            addCriterion("info_read like", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadNotLike(String value) {
            addCriterion("info_read not like", value, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadIn(List<String> values) {
            addCriterion("info_read in", values, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadNotIn(List<String> values) {
            addCriterion("info_read not in", values, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadBetween(String value1, String value2) {
            addCriterion("info_read between", value1, value2, "infoRead");
            return (Criteria) this;
        }

        public Criteria andInfoReadNotBetween(String value1, String value2) {
            addCriterion("info_read not between", value1, value2, "infoRead");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}